package com.tenbent.product.center.insures.dto.search;

import com.tenbent.product.base.dto.search.BaseSearchPageDto;
import com.tenbent.product.base.query.page.Pageable;
import com.tenbent.product.center.insures.bo.SafeguardCategoryType;

/**
 * 保障大类DTO
 *
 * @author Randy
 *
 *         Created by ThinkPad on 2017/8/28.
 */
public class SafeguardCategoryTypePageDto extends BaseSearchPageDto {

	/** 产品ID **/
	private Integer productId;

	/** 类型代码 **/
	private String typeCode;

	/** 类型名称 **/
	private String typeName;

	@Override
	public Pageable transToPageable() {
		SafeguardCategoryType safeguardCategoryType = new SafeguardCategoryType();
		safeguardCategoryType.setId(this.getId());
		safeguardCategoryType.setTypeCode(this.getTypeCode());
		safeguardCategoryType.setTypeName(this.getTypeName());
		Pageable pageable = new Pageable(this.getPageNum(), this.getPageSize());
		pageable.setParamBizObject(safeguardCategoryType);
		return pageable;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public String getTypeCode() {
		return typeCode;
	}

	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
}
